<?php
$x = 5;
function printX(): void
{
    global $x;
    echo $x;
}
printX();
echo PHP_EOL;